const joi=require('joi');

//user name rule
const username=joi.string().alphanum().min(1).max(20).required();
const password=joi.string().pattern(/^[\S]{1,20}$/).required();

exports.reg_login_schema={
    body:{
        username,
        password,
    },
}